Delphi
Form (DFM) Resource
|
A DFM (Delphi Form Module) file is an ASCII file encoded by Borland® Delphi/C++ Builder. This file contains the details of the objects contained in a form (component properties, methods and descriptions as well as the hierarchy of every component used by an application and information about controls initializations). Later, during the compilation, this DFM file is linked with the executable in form of RCDATA (Application-defined) resource. Delphi does not only store automatically DFM blocks as RCDATA, but rather we will also meet with resources like DVCLAL (this stands for "Delphi Visual Component Libraray Access License") and PACKAGEINFO.
When examining a program written in Delphi/C++ Builder, Resource Tuner recognizes these resources, visualizes in text mode all the loaded DFMs of the target executable and reconsitutes them in editable form. See How to edit a Delphi form.
Example
The following demonstrates the DFM converted to text:
// <DFM> TFORM1 = class(TForm);
object Form1: TForm1
Left = 351
Top = 162
BorderIcons = [biSystemMenu, biMinimize]
BorderStyle = bsSingle
Caption = 'Test Application'
ClientHeight = 287
ClientWidth = 571
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object Label1: TLabel
Left = 60
Top = 60
Width = 273
Height = 53
Alignment = taCenter
AutoSize = False
Caption = 'Sample Label.'
Color = cl3DLight
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -37
Font.Name = 'Courier New'
Font.Style = []
ParentColor = False
ParentFont = False
end
end